package com.codingfuture.mapper;

import com.codingfuture.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select username,password from user where username=#{username} and password=#{password}")
    User findUserInfo(@Param("username") String username, @Param("password") String password);

    @Select("select * from user where username=#{username}")
    User findByUsername(String username);
}
